package com.sub.project.info.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sub.project.info.prototype.Prototype;
import com.sub.project.info.vo.RestVo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sub.framework.aspectj.lang.annotation.Excel;
import java.util.Date;

/**
 * 【请填写功能名称】对象 honor
 * 
 * @author ruoyi
 * @date 2020-01-07
 */
@TableName("tb_honor")
public class Honor implements Prototype
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String honorName;

    /** 获取时间 */
    @Excel(name = "获取时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date getTime;

    /** 颁发的机构部门 */
    @Excel(name = "颁发的机构部门")
    private String getDeptName;

    /** 创建时间 */
    private Date createTime;

    /** 修改时间 */
    private Date updateTime;
    /** 小程序open_id**/

    private String open_id;

    public String getOpen_id() {
        return open_id;
    }

    public void setOpen_id(String open_id) {
        this.open_id = open_id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHonorName(String honorName) 
    {
        this.honorName = honorName;
    }

    public String getHonorName() 
    {
        return honorName;
    }
    public void setGetTime(Date getTime) 
    {
        this.getTime = getTime;
    }

    public Date getGetTime() 
    {
        return getTime;
    }
    public void setGetDeptName(String getDeptName) 
    {
        this.getDeptName = getDeptName;
    }

    public String getGetDeptName() 
    {
        return getDeptName;
    }
    public void setCreateTime(Date createTime) 
    {
        this.createTime = createTime;
    }

    public Date getCreateTime() 
    {
        return createTime;
    }
    public void setUpdateTime(Date updateTime) 
    {
        this.updateTime = updateTime;
    }

    public Date getUpdateTime() 
    {
        return updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("honorName", getHonorName())
            .append("getTime", getGetTime())
            .append("getDeptName", getGetDeptName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    @Override
    public Prototype clone() {
        RestVo restVo = new RestVo();
        restVo.setContent(this.getDeptName);
        restVo.setId(this.id);
        restVo.setName(this.honorName);
//        restVo.setRemarks(this.remarks);
        restVo.setStartTime(this.getTime);
//        restVo.setEndTime(this);
        return restVo;
    }
}
